package 访问者设计模式;

public class Amoxicillin implements Medicine {

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name = "阿莫西林";

    @Override
    public void accept(Vistitor visitor) {
        visitor.visit(this);
    }
}
